<template>
  <div>
      <el-input v-model="operatorById" placeholder="请输入内容"></el-input>
      <el-button @click="findOperator">查看</el-button>
    <div style="background-color: chartreuse">
      {{operatorMassage}}
    </div>

  </div>

</template>

<script>
  import {OperatorApi} from "./operatorApi";

  export default {
    name:"operator",
    data() {
      return {
        operatorMassage: "",
        operatorById: ''
      }
    },
    methods: {
      findOperator() {
        OperatorApi.findOperatorById(this.operatorById).then(res => {
          console.log(this.operatorById);
          this.operatorMassage = res.data;
          console.log(this.operatorMassage);
        })
      }
    }
  }
</script>

<style scoped>

</style>
